PackageStore.UpdatePackageLocation Method

Update the package reference to a new location;

Parent Type: PackageStore

Namespace: Microsoft.LearningComponents.Storage

Assembly: Microsoft.LearningComponents.Storage.dll

Syntax
C#

protected void UpdatePackageLocation (
PackageItemIdentifier packageId,
string location

)

Parameters

packageId

The unique identifier of the package to update.

location

The new location of the package reference. This may not be null or empty.

Exceptions
Exception type Condition
ArgumentException

Thrown if location is empty.

ArgumentNullException

Thrown if packageId or location are not provided.

LearningStoreItemNotFoundException

Thrown if packageId does not represent a package in LearningStore.